<template>
    <div class="customer-crm-index">
        <basic-container>
            <el-tabs v-model="activeName" type="card">
                <el-tab-pane label="CRM客户" name="first">
                    <customerCrm />
                </el-tab-pane>
                <el-tab-pane label="数据统计" name="second">
                    <customerStatistics v-if="activeName == 'second'" />
                </el-tab-pane>
            </el-tabs>
        </basic-container>
    </div>
</template>
<script>
import customerCrm from "./customer-crm.vue";
import customerStatistics from "./customer-statistics.vue";
export default {
    name: "customer-crm-index",
    components: {
        customerCrm,
        customerStatistics
    },
    data() {
        return {
            activeName: "first"
        };
    }
};
</script>
<style scoped lang='scss'>
</style>